arc-icons
A set of icons for Advanced REST Client.
Usage
Installation
npm install @advanced-rest-client/arc-icons --save
In an html file
<html>
<head>
<script type="module">
import '@advanced-rest-client/arc-icons/arc-icon.js';
</script>
</head>
<body>
<arc-icon icon="add"></arc-icon>
</body>
</html>
In a LitElement
import { LitElement, html, svg } from 'lit-element';
import '@advanced-rest-client/arc-icons/arc-icon.js';
import * as Icons from '@advanced-rest-client/arc-icons';
class SampleElement extends LitElement {
render() {
return html`
<arc-icon icon="add"></arc-icon>
<arc-icon>${Icons.add}</arc-icon>
<span class="icon">${Icons.add}</span>
<arc-icon>${Icons.iconWrapper(svg`...`)}</arc-icon>
`;
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/arc-icons
cd arc-icons
npm install
Running the demo locally
npm start
Running the tests
npm test